first principles-derivatives